package com.briup.es.service.impl;

import com.briup.es.domain.vo.CategoryVO;
import com.briup.es.mapper.CategoryMapper;
import com.briup.es.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<CategoryVO> list() {
        // 从数据库中查询数据，并且返回
        return categoryMapper.listCategory();
    }
}
